-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added print count of rules in the scan wizard #1219
Added print count of rules in the scan wizard #1219
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1219 +/- ##
==========================================
- Coverage 83.48% 82.31% -1.18%
==========================================
Files 27 27
Lines 24082 24313 +231
==========================================
- Hits 20106 20013 -93
- Misses 3976 4300 +324 ☔ View full report in Codecov by Sentry. |
Evidence
|
@hitenkoku
I thought that the |
The way we currently count the rules is by unique rule IDs, not number of .yml files. So two separate |
@YamatoSecurity @hitenkoku |
@YamatoSecurity @fukusuket Thanks for your comment. I checked excluded and noisy status in output count. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hitenkoku
Thank you so much for quick fix! I confirmed #1219 (comment) case fixed.
✔ Include noisy rules? (0 rules) · no
The number of noisy rules is 0
. Is this the expected behavior?
Could you check it out?
./hayabusa csv-timeline -d ../hayabusa-sample-evtx/ -o out.csv -C
Scan wizard:
? Which set of detection rules would you like to load? ›
1. Core (1421 rules) ( status: test, stable | level: high, critical )
2. Core+ (2299 rules) ( status: test, stable | level: medium, high, critical )
3. Core++ (3829 rules) ( status: experimental, test, stable | level: medium, high, critical )
4. All alert rules (4079 rules) ( status: * | level: low+ )
❯ 5. All event and alert rules (4168 rules) ( status: * | level: informational+ )
Scan wizard:
✔ Which set of detection rules would you like to load? · 5. All event and alert rules (4168 rules) ( status: * | level: informational+ )
✔ Include deprecated rules? (186 rules) · no
✔ Include noisy rules? (0 rules) · no
✔ Include unsupported rules? (45 rules) · no
✔ Include sysmon rules? (2050 rules) · yes
Loading detection rules. Please wait.
Excluded rules: 31
Noisy rules: 12 (Disabled)
Deprecated rules: 186 (7.18%) (Disabled)
Experimental rules: 950 (36.67%)
Stable rules: 198 (7.64%)
Test rules: 1443 (55.69%)
Unsupported rules: 45 (1.74%) (Disabled)
Hayabusa rules: 161
Sigma rules: 2430
Total enabled detection rules: 2591
@fukusuket Thanks for your comment. I checked noisy rule count. Could you check it?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hitenkoku
Thank you so much for quick fix! I confirmed #1219 (review) case. LGTM!!🚀
@hitenkoku
This part:
|
@YamatoSecurity Thanks for your comment. I fixed follow comment in c9ad9a0 . I will implement to other comment.
|
I already implemented following comment. Could you check it?
|
…All alert or event selected #1206
@YamatoSecurity I fixed following comment. Could you check it?
I fixed in e65e1d4
I fixed in a34f3ae
I fixed in bdb4b00. |
@hitenkoku Thank you so much! For this:
If the user chooses 1 and enables both ET rules and sysmon rules, then shouldn't the |
thanks for your comment.
|
@YamatoSecurity Sorry for my late comment. I checked following problm and fixed in 7aa6ba5. Could you check it?
|
@hitenkoku Thank you so much! However, when I choose the following:
I get only Output:
Also, a similar thing with
|
@YamatoSecurity I'm sorry to bother you again. I fixed follow problem in fe72800. I also confirmed 1.-5. wizard count is matched with rule count output. Could you check it?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hitenkoku Thanks so much! All looks good now!
@fukusuket @YamatoSecurity thanks for your review. |
What Changed
I would appreciate it if you could review when you have time.